<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>Get the id for a genre</title>
 </head>
 <body class="docs"><div id="layout">
  <div id="layout-content"><div id="function.id3-get-genre-id" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">id3_get_genre_id</h1>
  <p class="verinfo">(PECL id3 &gt;= 0.1)</p><p class="refpurpose"><span class="refname">id3_get_genre_id</span> &mdash; <span class="dc-title">Get the id for a genre</span></p>

 </div>
 <div class="refsect1 description" id="refsect1-function.id3-get-genre-id-description">
  <h3 class="title">说明</h3>
  <div class="methodsynopsis dc-description">
   <span class="methodname"><strong>id3_get_genre_id</strong></span>
    ( <span class="methodparam"><span class="type">string</span> <code class="parameter">$genre</code></span>
   ) : <span class="type">int</span></div>

  <p class="para rdfs-comment">
   <span class="function"><strong>id3_get_genre_id()</strong></span> returns the id for a genre.
  </p>
 </div>

 <div class="refsect1 parameters" id="refsect1-function.id3-get-genre-id-parameters">
  <h3 class="title">参数</h3>
  <p class="para">
   <dl>

    
     <dt>
<code class="parameter">genre</code></dt>

     <dd>

      <p class="para">
       Genre name as string.
      </p>
     </dd>

    
   </dl>

  </p>
 </div>

 <div class="refsect1 returnvalues" id="refsect1-function.id3-get-genre-id-returnvalues">
  <h3 class="title">返回值</h3>
  <p class="para">
   The genre id or <strong><code>FALSE</code></strong> on errors.
  </p>
 </div>

 <div class="refsect1 examples" id="refsect1-function.id3-get-genre-id-examples">
  <h3 class="title">范例</h3>
  <p class="para">
   <div class="example" id="example-643">
    <p><strong>Example #1 <span class="function"><strong>id3_get_genre_id()</strong></span> example</strong></p>
    <div class="example-contents">
<div class="phpcode"><pre><span style="color: #000000">
<span style="color: #0000BB">&lt;?php<br />$id&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">id3_get_genre_id</span><span style="color: #007700">(</span><span style="color: #DD0000">"Alternative"</span><span style="color: #007700">);<br />echo&nbsp;</span><span style="color: #0000BB">$id</span><span style="color: #007700">;<br /></span><span style="color: #0000BB">?&gt;</span>
</span>
</pre></div>
    </div>

    <div class="example-contents"><p>以上例程会输出：</p></div>
    <div class="example-contents screen">
<div class="cdata"><pre>
20
</pre></div>
    </div>
   </div>
  </p>
 </div>

 <div class="refsect1 seealso" id="refsect1-function.id3-get-genre-id-seealso">
  <h3 class="title">参见</h3>
  <p class="para">
   <ul class="simplelist">
    <li class="member"><span class="function"><a href="id3_get_genre_name.html" class="function" rel="rdfs-seeAlso">id3_get_genre_name()</a> - Get the name for a genre id</span></li>
    <li class="member"><span class="function"><a href="id3_get_genre_list.html" class="function" rel="rdfs-seeAlso">id3_get_genre_list()</a> - Get all possible genre values</span></li>
   </ul>
  </p>
 </div>

</div></div></div></body></html>